package com.xyp.danmu.api;

import com.xyp.danmu.model.DanmuRequest;
import com.xyp.danmu.model.DanmuResp;
import com.xyp.danmu.model.Message;
import com.xyp.danmu.model.Setting;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author xyp
 * @version 2019-03-09 13:43
 * @description IDanmuController
 */
@RequestMapping(value = "api/danmu")
public interface IDanmuController {

    @RequestMapping(value = "/getCurrentMsgList")
    public List<Message> getMsgList(@RequestBody DanmuRequest request);

    @RequestMapping(value = "/updateSetting")
    public DanmuResp<Setting> updateSetting(@RequestBody Setting setting);

    @RequestMapping(value = "/getSetting")
    public DanmuResp<Setting> getSetting();


}
